import request from '@/utils/request'

// 查询部门积分明细列表
export function listPointsDeptLog(query) {
  return request({
    url: '/project/pointsDeptLog/list',
    method: 'get',
    params: query
  })
}

// 查询部门积分明细详细
export function getPointsDeptLog(id) {
  return request({
    url: '/project/pointsDeptLog/' + id,
    method: 'get'
  })
}

// 新增部门积分明细
export function addPointsDeptLog(data) {
  return request({
    url: '/project/pointsDeptLog',
    method: 'post',
    data: data
  })
}

// 修改部门积分明细
export function updatePointsDeptLog(data) {
  return request({
    url: '/project/pointsDeptLog',
    method: 'put',
    data: data
  })
}

// 删除部门积分明细
export function delPointsDeptLog(id) {
  return request({
    url: '/project/pointsDeptLog/' + id,
    method: 'delete'
  })
}
